package com.itheima.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.itheima.pojo.Emp;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface EmpMapper extends BaseMapper<Emp> {

    // @Update("update emp set salary = salary + #{amount} ${ew.customSqlSegment}")
    void updateSalaryByIds(@Param(Constants.WRAPPER) LambdaQueryWrapper<Emp> queryWrapper, @Param("amount") double amount);
}
